import unittest
import HTMLTestRunner_PY3
# 实例化测试套件
from script.test_login_prarm import TestLogin
from script.test_organization import TestOrganization
import time,app

suite = unittest.TestSuite()
# 将测试用例添加到测试条件
suite.addTest(unittest.makeSuite(TestOrganization))
suite.addTest(unittest.makeSuite(TestLogin))

with open(app.BASE_DIR+f'/report/report{time.strftime("%Y%m%d %H%M%S")}.html', "wb") as f:
    HTMLTestRunner_PY3.HTMLTestRunner(f).run(suite)

